import java.util.Scanner;//导包
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 逆袭人生
 * Date: 2024-07-01
 * Time: 16:24
 */

//ctrl+Alt+L快捷键对其格式
public class Demon {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
//        while (scanner.hasNextInt()) {
//            int a = scanner.nextInt();//使用Scanner循环读取N个数字
//            System.out.println(a);
//        }
        while (scanner.hasNextLine()) {
            String a = scanner.nextLine();//使用Scanner循环读取N个字符串
            System.out.println(a);
        }
    }
    public static void main输入(String[] args) {
/*        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入你的姓名：");
        String name = scanner.nextLine();//输入一个字符串
        System.out.println(name);*/
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入你的姓名：");
        String name = scanner.next();//输入一个字符串
        System.out.println(name);//遇到空格就结束了

        System.out.println("请输入你的年龄：");
        int age = scanner.nextInt();
        System.out.println(age);

        System.out.println("请输入你的工资：");
        float f = scanner.nextFloat();
        System.out.println(f);

    }

    public static void main输出(String[] args) {
        System.out.println("输出且换行");
        System.out.print("输出不换行");
        System.out.printf("%s\n","输出");
    }
    public static void main7(String[] args) {
        int i = 0;
        do {
            System.out.println(i);
        }while (i != 0);
    }
    public static void main6(String[] args) {
        //用for循环实现数字的阶乘
        int sum = 0;
        for (int k = 1; k <= 5; k++) {
            int ret = 1;
            for (int i = 1; i <= k; i++) {
                ret *= i;
            }
        sum += ret;
        }
        System.out.println(sum);
    }
    public static void main5(String[] args) {
        for (int i = 0; i < 10; i++) {
            System.out.println(i);
        }
    }
    public static void main4(String[] args) {
        int i = 1;//老师的代码
        while (i <= 100) {
            if (i % 15 != 0) {
                i++;
                continue;
            }
            System.out.println(i);
            i++;
        }
        //找到1-100之间         既能被3整除  也能被5整除的 数据
        //要求使用break或continue
/*        int i = 0;//自己写的
        while (i <= 100) {
            i = i + 1;
            if (i % 3 == 0) {
                if (i % 5 == 0) {
                    System.out.println(i);
                    continue;
                } else {
                    continue;
                }
            } else {
                continue;
            }
        }*/
    }
    public static void main3(String[] args) {
        int i = 1;
        while (i <= 10) {
            if (i % 3 == 0) {
                System.out.println(i);
                break;
            }
            i++;
        }
    }
    public static void main1(String[] args) {
        int a = 1;
        switch (a) {
            case 1:
                System.out.println(1);
                break;
            case 2:
                System.out.println(2);
                break;
            default:
                System.out.println("输入有误！");
                break;
        }
    }
    public static void main2(String[] args) {
        int x = 10;
        int y = 10;
        if (x == 10)
            if (y == 10)
                System.out.println("aaa");
        else
            System.out.println("bbb");//此时else和最近的if匹配

    }
    public static void main闰年(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int year = scanner.nextInt();
        if (year % 100 == 0) {
            if (year % 400 == 0) {
                System.out.println("世纪闰年");
            } else {
                System.out.println("不是闰年");
            }
        } else {
            if (year % 4 == 0) {
                System.out.println("普通闰年");
            } else {
                System.out.println("不是闰年");
            }
        }
    }

}
